<template>
  <div>
    <div>
      <el-table :data="users.slice((currentPage-1)*pagesize,currentPage*pagesize)" border stripe
                @selection-change="selsChange">
        <el-table-column label="序号" prop="id"/>
        <el-table-column label="月份" prop="month"/>
        <el-table-column label="楼栋" prop="floor"/>
        <el-table-column label="照明用电量小计(度)" prop=""/>
        <el-table-column label="空调赵明刚用电量小计(度)" prop=""/>
        <el-table-column label="总用电量(度)" prop=""/>
        <el-table-column label="总费用(元)" prop=""/>
        <el-table-column label="电费合计" prop=""/>
      </el-table>
    </div>
    <div class="pagei">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage"
        :page-sizes="[3, 6, 9, 12]"
        :page-size="pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total">
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: 'zhuangtai'
}
</script>

<style scoped>

</style>
